﻿namespace YidanSoft.Library.EditorUtility.WinControls
{
    using System;

    internal class RowSorterHelper
    {
        private int columnIndex;
        private SortedListViewFormatType format;
        private ListSortEvent sortEvent;

        public RowSorterHelper(int columnIndex, SortedListViewFormatType format)
        {
            this.sortEvent = null;
            this.columnIndex = columnIndex;
            this.format = format;
        }

        public RowSorterHelper(int columnIndex, SortedListViewFormatType format, ListSortEvent sortEvent)
        {
            this.sortEvent = null;
            this.columnIndex = columnIndex;
            this.format = format;
            this.sortEvent = sortEvent;
        }

        public int ColumnIndex
        {
            get
            {
                return this.columnIndex;
            }
            set
            {
                this.columnIndex = value;
            }
        }

        public SortedListViewFormatType Format
        {
            get
            {
                return this.format;
            }
            set
            {
                this.format = value;
            }
        }

        public ListSortEvent SortEvent
        {
            get
            {
                return this.sortEvent;
            }
            set
            {
                this.sortEvent = value;
            }
        }
    }
}

